<!-- 我的单个 -->

<template>
  <div>
    <div>
      <span>待选择设备 ({{ model.id ? 1 : 0 }}/{{ list.length }})</span>
      <span class="floatRight">共 {{ total }} 个</span>
    </div>

    <el-input
      v-model="param.deviceName"
      suffix-icon="el-icon-search"
      placeholder="设备名称"
      clearable
      @change="toSearch"
    />

    <WebTable v-bind="tableProps" @select="toSelect">
      <RowCheckbox :bind="info.checkImport ? 'assetId' : ''" :disabled="info.disabled" :grayed="info.grayed" />
      <RowText label="设备名称" bind="deviceName" :minWidth="100" left />
      <RowDict label="设备类型" bind="deviceTypeId" :dict="$root.iot_type_selectDict" left />
    </WebTable>
  </div>
</template>

<script>
// ============================== 导入依赖 ============================== //

import mixSingle from '@admin/components/choose/mixSingle'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'MySingle',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [mixSingle],
}
</script>
